/*****************************************************************************
 *   Copyright 2005 Tim A Wang
 *
 *   Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *   You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 *
 ****************************************************************************/
package com.jb.security;

import com.jb.web.context.WebContext;

import com.jb.web.session.SessionUser;

import java.io.Serializable;

import java.util.Collections;
import java.util.List;
import java.util.Locale;


public class GuestUser implements SessionUser, Serializable {
    static final long serialVersionUID = 123123L;

    public String getAboutMe() {
        return "";
    }

    public void setAccess(int i) {
    }

    public int getAccess() {
        return 1000;
    }

    public String getCountry() {
        return "US";
    }

    public boolean isFriend(SessionUser user) {
        return false;
    }

    public List getFriends() {
        return Collections.EMPTY_LIST;
    }

    public String getGender() {
        return "";
    }

    public String getId() {
        return "guest";
    }

    public String getInterests() {
        return "";
    }

    public boolean isInvited() {
        return false;
    }

    public void setLanguage(String lang) {
        //
    }

    public String getLanguage() {
        return "en";
    }

    public Locale getLocale() {
        return Locale.getDefault();
    }

    public void setPassword(String pwd) {
        //
    }

    public String getPassword() {
        return "anonymous";
    }

    public void setScreenName(String screenName) {
    }

    public String getScreenName() {
        return "Guest";
    }

    public void setUserName(String userName) {
    }

    public String getUserName() {
        return "guest";
    }

    public int accessLevel(WebContext pCtx, SessionUser friend) {
        return 2;
    }

    public void onLogin(WebContext ctx) {
    }

    public void onLogout(WebContext ctx) {
    }
}
